package Turma.Jogo;

import android.framework.Game;
import android.framework.Graphics.PixmapFormat;

public class Creditos extends Scene{
	
	Background background;
	
	public Creditos(Game game)
	{
		super(game);
		background = new Background(graphics, "/Imagens/Creditos.jpg", PixmapFormat.ARGB4444, 0, 0);
	}
	
	@Override
	public void update(float deltaTime) 
	{
		if(this.background.y >= 600-3475)
			this.background.y--;
		else
		{
			SceneManager.MudarCena();
		}
	}
	
	@Override
	public void draw(float deltaTime)
	{
		super.draw(deltaTime);
		background.draw(deltaTime, game.getGraphics());
	}
}
